package model

import (
	"gorm.io/gorm"
	"time"
)

type Focu struct {
	Id        int            `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	UserId    int            `gorm:"column:user_id;type:bigint(20) UNSIGNED;comment:用户id;not null;default:0;" json:"user_id"`                  // 用户id
	FocuId    int            `gorm:"column:focu_id;type:bigint(20) UNSIGNED;comment:关注的id;not null;default:0;" json:"focu_id"`                 // 关注的id
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);comment:创建时间;not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"` // 创建时间
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);comment:删除时间;default:NULL;" json:"deleted_at"`                          // 删除时间
}

func (Focu) TableName() string {
	return "focu"
}
